
#include "resource.h"
#include "ado.h"	// Added by ClassView
#include "Authentication.h"

class CActivcardApp : public CWinApp
{
public:
	bool InsertSysLog(CString doType, CString doContent, CString doResult);
	CActivcardApp();
	CString m_strConfFilePath;
	CADODatabase m_Ado;
	bool ConnectDB();

	friend STDMETHODIMP CAuthentication::GetSysUserPwd(BSTR strUser,BSTR  pPwd, BSTR *pRights, long *ret);

	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CActivcardApp)
public:
    virtual BOOL InitInstance();
    virtual int ExitInstance();
	//}}AFX_VIRTUAL
	
	//{{AFX_MSG(CActivcardApp)
	// NOTE - the ClassWizard will add and remove member functions here.
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CString m_strSessionUsername;
};
